package com.xhl.oauth2.modules.admin.service;

import com.gitee.fastmybatis.core.support.IService;
import com.xhl.oauth2.modules.admin.entity.SysUserEntity;
import com.xhl.oauth2.modules.admin.mapper.SysUserMapper;
import com.xhl.oauth2.modules.admin.vo.SysUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SysUserService implements IService<SysUserEntity, Integer> {

    @Resource
    private SysUserMapper sysUserMapper;

    public SysUserVo selectOneUserByUsername(String username){
        return sysUserMapper.selectOneUserByUserName(username);
    }
}
